<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="<%=path %>/images/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

<!--main start -->

<div id="main">
  <jsp:include flush="true" page="/qiantai/inc/incTop2.jsp"></jsp:include>
  
  <!--left panel start -->
  <div id="left">
    <jsp:include flush="true" page="/qiantai/inc/incLeft.jsp"></jsp:include>
  </div>
  <!--left panel end --> 
  <!--right panel start -->
  <div id="right"> 
    <!--rightBotMain start -->
    
    <div class="contactMain"> 
      
      <!--best start --> 
      <!--rightBot start --> 
      <!--rightBot end --> 
      <!--best start -->
      <div id="best1">
        <h2><span>留言信息 </span></h2>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <c:forEach items="${requestScope.liuyanList}" var="liuyan">
            <TR>
              <TD><TABLE width="100%" border=0>
                  <TBODY>
                    <TR bgColor=#eeeeee>
                      <TD width="14%" align=middle ><STRONG>留言人：</STRONG></TD>
                      <TD width="20%" ><FONT color=#000000>&nbsp;
                        <c:out value="${liuyan.name}"/>
                        </FONT></TD>
                      <TD width="34%" align=middle ><STRONG>留言时间：</STRONG></TD>
                      <TD width="32%" ><FONT color=#000000>&nbsp;
                        <c:out value="${liuyan.shijian}"/>
                        </FONT>
                        <c:if test="${sessionScope.userType!=null  }"> &nbsp;&nbsp;&nbsp;&nbsp;<a style="color: red" href="<%=path%>/qiantai/liuyan/liuyanRe.jsp?id=${liuyan.id}"  >回复</a> </c:if></TD>
                    </TR>
                    <TR>
                      <TD align=right> 标题： </TD>
                      <TD colSpan=3><FONT color=#000000>&nbsp;
                        <c:out value="${liuyan.title}"/>
                        </FONT></TD>
                    </TR>
                    <TR>
                      <TD vAlign=top align=right> 内容：</TD>
                      <TD colSpan=3><c:out value="${liuyan.content}" escapeXml="false"/>
                        &nbsp; </TD>
                    </TR>
                   <TR>
                      <TD vAlign=top align=middle>回复内容：</TD>
                      <TD colSpan=3 vAlign=top ><c:out value="${liuyan.re}" escapeXml="false"/></TD>
                    </TR>
                </TBODY>
                </TABLE></TD>
            </TR>
          </c:forEach>
        </TABLE>
        <c:if test="${sessionScope.userType!=null}"> <BR>
          <form action="<%=path %>/liuyan?type=liuyanAdd" name="fr" method="post">
            <table border="0">
              <tr>
                <td >标题</td>
                <td><input type="text" name="title" size="50"/>
                  <input type="hidden" name="name" value="${sessionScope.stu.name1 }"></td>
              </tr>
              <tr>
                <td >内容</td>
                <td><FCK:editor instanceName="content"  basePath="/fckeditor" width="500" height="200" value="请输入内容" toolbarSet="Basic"> </FCK:editor></td>
              </tr>
              <tr>
                <td >&nbsp;</td>
                <td><input type="submit" name="" value="提交留言"></td>
              </tr>
            </table>
          </form>
        </c:if>
      </div>
      <br class="spacer" />
    </div>
    <!--best end --> 
  </div>
  <!--rightBotMain end --> 
  <!--last panel start --> 
  <!--last panel end --> 
  <br class="spacer" />
</div>

<!--right panel end --> 
<br class="spacer" />
</div>
<!--main end --> 
<!--footerMain start -->

<jsp:include flush="true" page="/qiantai/inc/incFoot.jsp"></jsp:include>

<!--footerMain end -->
</body>
</html>
